<?php echo form_open($this->curl . '/edit/'.$this->validation->id, 'id="create_form"')?>
<?php echo form_hidden('id', $this->validation->id)?>
<br />
<table class="nostyle" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
	<td>
		<?php echo $this->validation->error_string?>
		<table class="nostyle" width="100%" border="0" cellpadding="3" cellspacing="0">		
		<tr>
			<th style="width: 180px;"><?php echo $this->advert_model->fields['name']?>:</th>
			<th><?php echo form_input('name', $this->validation->name, 'class="input-text" size="50"')?></th>
		</tr>
		<tr>
			<th><?php echo $this->advert_model->fields['id_advertisers']?>:</th>
			<th><?php echo $advert->advertiser_name; ?></th>
		</tr>
		<tr>
			<th><?php echo T_('Рекламные компании'); ?>:</th>
			<th><?php  ?></th>
		</tr>		
		<tr>
			<th><?php echo $this->advert_model->fields['description']?>:</th>
			<th><textarea name="description" cols="32" rows="2"><?php echo $this->validation->description; ?></textarea></th>
		</tr>
		<tr>
			<th><?php echo $this->advert_model->fields['duration']?>:</th>
			<th><?php echo form_input('duration', $this->validation->duration, 'class="input-text" size="50"')?></th>
		</tr>
		<tr>
			<th><?php echo $this->advert_model->fields['status']?>:</th>
			<th><?php echo form_dropdown('status', $this->advert_model->status, array($this->validation->status))?></th>
		</tr>		
		<tr>
			<th><?php echo $this->advert_model->fields['refusing']?>:</th>
			<th><textarea name="refusing" cols="32" rows="2"><?php echo $this->validation->refusing; ?></textarea></th>
		</tr>
		<tr>
			<th><?php echo $this->advert_model->fields['date_created']?>:</th>
			<th><?php echo $advert->date_created; ?></th>
		</tr>
		<tr>
			<th><?php echo $this->advert_model->fields['date_modified']?>:</th>
			<th><?php echo $advert->date_modified; ?></th>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="2">			
				<input name="edit"   type="submit" class="input-submit" id="submit" value="<?php echo T_('Submit')?>" />
				<input name="reset"  type="reset"  class="input-submit" id="reset"  value="<?php echo T_('Reset')?>" onclick="$('#create_form input[type=text]').val('');" />
				<input name="delete" type="button" class="input-submit" id="delete" value="<?php echo T_('Отменить')?>" onclick="if (confirm('<?php echo T_('Вы уверены, что хотите отклонить этот ролик?')?>')) location='/admin/<?php echo $this->curl; ?>/cancelItem/<?php echo $this->validation->id?>';return false;" />
			</td>
		</tr>
		</table>
	</td>
</tr>
</table>
<?php echo form_close()?>